﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Hyt.Web.Security;
using Hyt.Core;

namespace Huayuan.ApplicationService
{
    public partial class ServiceCenter 
    {

        public virtual bool ValidSafeCode(String sessionid, String code)
        {
            var safecodemanager = this.UnitOfWork.Get<ISafeCodeProvider>();
            return safecodemanager.ValidSafeCode(sessionid, code);
        }

        public virtual void ClearSafeCode(String sessionid)
        {
            var safecodemanager = this.UnitOfWork.Get<ISafeCodeProvider>();
            safecodemanager.ClearSafeCode(sessionid);
        }
    }
}
